<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Address extends CI_Controller {

    function __construct() {
        parent::__construct();
    }

    public function county() {
        $this->load->model('address_county_model');
        $id = $this->input->post('id');
        $html["data"] = $this->address_county_model->get_by_id($id);
        $this->load->view('address', $html);
    }

    public function street() {
        $this->load->model('address_street_model');
        $id = $this->input->post('id');
        $html["data"] = $this->address_street_model->get_by_id($id);
        $this->load->view('address', $html);
    }

    public function administrative_area() {
        $this->load->model('address_street_model');
        $id = $this->input->post('id');
        $html["data"] = $this->address_street_model->get_by_id($id);
        $this->load->view('address', $html);
    }

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */